package com.lvtongka.app.dialog

import android.content.Context
import android.view.View
import com.lvtongka.app.base.BaseDialog
import com.lvtongka.app.databinding.DialogRealNameBinding

class DialogRealName(context: Context) : BaseDialog(context) {
    var binding: DialogRealNameBinding = DialogRealNameBinding.inflate(layoutInflater)

    init {
        setContentView(binding.root)

        setOnKeyListener { _, keyCode, event ->
            false
        }

    }

    fun getRealName() : String {
        return binding.etRealName.text.toString()
    }

    fun getRealId() : String {
        return binding.etRealId.text.toString()
    }

    fun setSureListener(sureListener: View.OnClickListener?) {
        binding.tvSubmit.setOnClickListener(sureListener)
    }
}